package org.xb.Demo;

/**
 * @Author
 * @Description 同事去观察股票的人
 * @Date created in 16:59 2023/12/11
 */
public class StockObserver {
    private String name;
    private Secretary secretary;

    public StockObserver(String name, Secretary secretary) {
        this.name = name;
        this.secretary = secretary;
    }
    public void up(){
        System.out.println(name +","+  secretary.getAction() + " 停止摸鱼，继续工作");
    }
}
